namespace ghost 
{
    export class RoleSkin extends GYSprite
    {
        public owner:Role;
        constructor(o:Role=null)
        {
            super();
            this.owner = o;
        }
        public clear():void
		{
			let s = this;
			if(s.parent!=null)
				(<GYSprite>s.parent).removeChild(s);		
            if(s._destroyed)
                return;
			s.scaleX = s.scaleY = 1;						
			s.mouseThrough = false;
			s.alpha = 1;
		}
    }
}